package com.profgj.profgj.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

/**
 * 网站所有接口统一返回的信息格式
 *
 * @author 杨帅
 * @since 2021-06-22 11:09:35
 */
@ApiModel(value = "请求返回的所有数据结构",description = "请求返回的所有数据结构")
public class ResultMsg implements Serializable {

    private static final long serialVersionUID = -83319949656564408L;
    /**
     * 成功返回的描述信息
     */
    @ApiModelProperty(value = "成功返回的描述信息")
    private String Message;

    /**
     * 异常返回的描述信息
     */
    @ApiModelProperty(value = "异常返回的描述信息")
    private String ErrorMsg;

    /**
     * 数据成功与失败的状态码 200成功/400失败
     */
    @ApiModelProperty(value = "成功与失败的状态码")
    private Integer StatusCode;

    /**
     * 列表数据的返回对象 如果为空返回空数组
     */
    @ApiModelProperty(value = "列表数据的返回对象如果为空返回空数组")
    private List List;

    /**
     * 单个对象返回的信息
     */
    @ApiModelProperty(value = "单个对象返回的信息")
    private Object object;

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public String getErrorMsg() {
        return ErrorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        ErrorMsg = errorMsg;
    }

    public Integer getStatusCode() {
        return StatusCode;
    }

    public void setStatusCode(Integer statusCode) {
        StatusCode = statusCode;
    }

    public List<Object> getList() {
        return List;
    }

    public void setList(List list) {
        List = list;
    }
    @Override
    public String toString() {
        return "ResultMsg{" +
                "Message='" + Message + '\'' +
                ", ErrorMsg='" + ErrorMsg + '\'' +
                ", StatusCode=" + StatusCode +
                ", List=" + List +
                ", object=" + object +
                '}';
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }


}
